package com.wbr.file.pojo;

import java.util.ArrayList;
import java.util.List;

public class CustomerExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CustomerExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCidIsNull() {
            addCriterion("cid is null");
            return (Criteria) this;
        }

        public Criteria andCidIsNotNull() {
            addCriterion("cid is not null");
            return (Criteria) this;
        }

        public Criteria andCidEqualTo(Integer value) {
            addCriterion("cid =", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotEqualTo(Integer value) {
            addCriterion("cid <>", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidGreaterThan(Integer value) {
            addCriterion("cid >", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidGreaterThanOrEqualTo(Integer value) {
            addCriterion("cid >=", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLessThan(Integer value) {
            addCriterion("cid <", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLessThanOrEqualTo(Integer value) {
            addCriterion("cid <=", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidIn(List<Integer> values) {
            addCriterion("cid in", values, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotIn(List<Integer> values) {
            addCriterion("cid not in", values, "cid");
            return (Criteria) this;
        }

        public Criteria andCidBetween(Integer value1, Integer value2) {
            addCriterion("cid between", value1, value2, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotBetween(Integer value1, Integer value2) {
            addCriterion("cid not between", value1, value2, "cid");
            return (Criteria) this;
        }

        public Criteria andCnameIsNull() {
            addCriterion("cname is null");
            return (Criteria) this;
        }

        public Criteria andCnameIsNotNull() {
            addCriterion("cname is not null");
            return (Criteria) this;
        }

        public Criteria andCnameEqualTo(String value) {
            addCriterion("cname =", value, "cname");
            return (Criteria) this;
        }

        public Criteria andCnameNotEqualTo(String value) {
            addCriterion("cname <>", value, "cname");
            return (Criteria) this;
        }

        public Criteria andCnameGreaterThan(String value) {
            addCriterion("cname >", value, "cname");
            return (Criteria) this;
        }

        public Criteria andCnameGreaterThanOrEqualTo(String value) {
            addCriterion("cname >=", value, "cname");
            return (Criteria) this;
        }

        public Criteria andCnameLessThan(String value) {
            addCriterion("cname <", value, "cname");
            return (Criteria) this;
        }

        public Criteria andCnameLessThanOrEqualTo(String value) {
            addCriterion("cname <=", value, "cname");
            return (Criteria) this;
        }

        public Criteria andCnameLike(String value) {
            addCriterion("cname like", value, "cname");
            return (Criteria) this;
        }

        public Criteria andCnameNotLike(String value) {
            addCriterion("cname not like", value, "cname");
            return (Criteria) this;
        }

        public Criteria andCnameIn(List<String> values) {
            addCriterion("cname in", values, "cname");
            return (Criteria) this;
        }

        public Criteria andCnameNotIn(List<String> values) {
            addCriterion("cname not in", values, "cname");
            return (Criteria) this;
        }

        public Criteria andCnameBetween(String value1, String value2) {
            addCriterion("cname between", value1, value2, "cname");
            return (Criteria) this;
        }

        public Criteria andCnameNotBetween(String value1, String value2) {
            addCriterion("cname not between", value1, value2, "cname");
            return (Criteria) this;
        }

        public Criteria andCnicknameIsNull() {
            addCriterion("cnickname is null");
            return (Criteria) this;
        }

        public Criteria andCnicknameIsNotNull() {
            addCriterion("cnickname is not null");
            return (Criteria) this;
        }

        public Criteria andCnicknameEqualTo(String value) {
            addCriterion("cnickname =", value, "cnickname");
            return (Criteria) this;
        }

        public Criteria andCnicknameNotEqualTo(String value) {
            addCriterion("cnickname <>", value, "cnickname");
            return (Criteria) this;
        }

        public Criteria andCnicknameGreaterThan(String value) {
            addCriterion("cnickname >", value, "cnickname");
            return (Criteria) this;
        }

        public Criteria andCnicknameGreaterThanOrEqualTo(String value) {
            addCriterion("cnickname >=", value, "cnickname");
            return (Criteria) this;
        }

        public Criteria andCnicknameLessThan(String value) {
            addCriterion("cnickname <", value, "cnickname");
            return (Criteria) this;
        }

        public Criteria andCnicknameLessThanOrEqualTo(String value) {
            addCriterion("cnickname <=", value, "cnickname");
            return (Criteria) this;
        }

        public Criteria andCnicknameLike(String value) {
            addCriterion("cnickname like", value, "cnickname");
            return (Criteria) this;
        }

        public Criteria andCnicknameNotLike(String value) {
            addCriterion("cnickname not like", value, "cnickname");
            return (Criteria) this;
        }

        public Criteria andCnicknameIn(List<String> values) {
            addCriterion("cnickname in", values, "cnickname");
            return (Criteria) this;
        }

        public Criteria andCnicknameNotIn(List<String> values) {
            addCriterion("cnickname not in", values, "cnickname");
            return (Criteria) this;
        }

        public Criteria andCnicknameBetween(String value1, String value2) {
            addCriterion("cnickname between", value1, value2, "cnickname");
            return (Criteria) this;
        }

        public Criteria andCnicknameNotBetween(String value1, String value2) {
            addCriterion("cnickname not between", value1, value2, "cnickname");
            return (Criteria) this;
        }

        public Criteria andCjobIsNull() {
            addCriterion("cjob is null");
            return (Criteria) this;
        }

        public Criteria andCjobIsNotNull() {
            addCriterion("cjob is not null");
            return (Criteria) this;
        }

        public Criteria andCjobEqualTo(String value) {
            addCriterion("cjob =", value, "cjob");
            return (Criteria) this;
        }

        public Criteria andCjobNotEqualTo(String value) {
            addCriterion("cjob <>", value, "cjob");
            return (Criteria) this;
        }

        public Criteria andCjobGreaterThan(String value) {
            addCriterion("cjob >", value, "cjob");
            return (Criteria) this;
        }

        public Criteria andCjobGreaterThanOrEqualTo(String value) {
            addCriterion("cjob >=", value, "cjob");
            return (Criteria) this;
        }

        public Criteria andCjobLessThan(String value) {
            addCriterion("cjob <", value, "cjob");
            return (Criteria) this;
        }

        public Criteria andCjobLessThanOrEqualTo(String value) {
            addCriterion("cjob <=", value, "cjob");
            return (Criteria) this;
        }

        public Criteria andCjobLike(String value) {
            addCriterion("cjob like", value, "cjob");
            return (Criteria) this;
        }

        public Criteria andCjobNotLike(String value) {
            addCriterion("cjob not like", value, "cjob");
            return (Criteria) this;
        }

        public Criteria andCjobIn(List<String> values) {
            addCriterion("cjob in", values, "cjob");
            return (Criteria) this;
        }

        public Criteria andCjobNotIn(List<String> values) {
            addCriterion("cjob not in", values, "cjob");
            return (Criteria) this;
        }

        public Criteria andCjobBetween(String value1, String value2) {
            addCriterion("cjob between", value1, value2, "cjob");
            return (Criteria) this;
        }

        public Criteria andCjobNotBetween(String value1, String value2) {
            addCriterion("cjob not between", value1, value2, "cjob");
            return (Criteria) this;
        }

        public Criteria andCaddressIsNull() {
            addCriterion("caddress is null");
            return (Criteria) this;
        }

        public Criteria andCaddressIsNotNull() {
            addCriterion("caddress is not null");
            return (Criteria) this;
        }

        public Criteria andCaddressEqualTo(String value) {
            addCriterion("caddress =", value, "caddress");
            return (Criteria) this;
        }

        public Criteria andCaddressNotEqualTo(String value) {
            addCriterion("caddress <>", value, "caddress");
            return (Criteria) this;
        }

        public Criteria andCaddressGreaterThan(String value) {
            addCriterion("caddress >", value, "caddress");
            return (Criteria) this;
        }

        public Criteria andCaddressGreaterThanOrEqualTo(String value) {
            addCriterion("caddress >=", value, "caddress");
            return (Criteria) this;
        }

        public Criteria andCaddressLessThan(String value) {
            addCriterion("caddress <", value, "caddress");
            return (Criteria) this;
        }

        public Criteria andCaddressLessThanOrEqualTo(String value) {
            addCriterion("caddress <=", value, "caddress");
            return (Criteria) this;
        }

        public Criteria andCaddressLike(String value) {
            addCriterion("caddress like", value, "caddress");
            return (Criteria) this;
        }

        public Criteria andCaddressNotLike(String value) {
            addCriterion("caddress not like", value, "caddress");
            return (Criteria) this;
        }

        public Criteria andCaddressIn(List<String> values) {
            addCriterion("caddress in", values, "caddress");
            return (Criteria) this;
        }

        public Criteria andCaddressNotIn(List<String> values) {
            addCriterion("caddress not in", values, "caddress");
            return (Criteria) this;
        }

        public Criteria andCaddressBetween(String value1, String value2) {
            addCriterion("caddress between", value1, value2, "caddress");
            return (Criteria) this;
        }

        public Criteria andCaddressNotBetween(String value1, String value2) {
            addCriterion("caddress not between", value1, value2, "caddress");
            return (Criteria) this;
        }

        public Criteria andCdetailIsNull() {
            addCriterion("cdetail is null");
            return (Criteria) this;
        }

        public Criteria andCdetailIsNotNull() {
            addCriterion("cdetail is not null");
            return (Criteria) this;
        }

        public Criteria andCdetailEqualTo(String value) {
            addCriterion("cdetail =", value, "cdetail");
            return (Criteria) this;
        }

        public Criteria andCdetailNotEqualTo(String value) {
            addCriterion("cdetail <>", value, "cdetail");
            return (Criteria) this;
        }

        public Criteria andCdetailGreaterThan(String value) {
            addCriterion("cdetail >", value, "cdetail");
            return (Criteria) this;
        }

        public Criteria andCdetailGreaterThanOrEqualTo(String value) {
            addCriterion("cdetail >=", value, "cdetail");
            return (Criteria) this;
        }

        public Criteria andCdetailLessThan(String value) {
            addCriterion("cdetail <", value, "cdetail");
            return (Criteria) this;
        }

        public Criteria andCdetailLessThanOrEqualTo(String value) {
            addCriterion("cdetail <=", value, "cdetail");
            return (Criteria) this;
        }

        public Criteria andCdetailLike(String value) {
            addCriterion("cdetail like", value, "cdetail");
            return (Criteria) this;
        }

        public Criteria andCdetailNotLike(String value) {
            addCriterion("cdetail not like", value, "cdetail");
            return (Criteria) this;
        }

        public Criteria andCdetailIn(List<String> values) {
            addCriterion("cdetail in", values, "cdetail");
            return (Criteria) this;
        }

        public Criteria andCdetailNotIn(List<String> values) {
            addCriterion("cdetail not in", values, "cdetail");
            return (Criteria) this;
        }

        public Criteria andCdetailBetween(String value1, String value2) {
            addCriterion("cdetail between", value1, value2, "cdetail");
            return (Criteria) this;
        }

        public Criteria andCdetailNotBetween(String value1, String value2) {
            addCriterion("cdetail not between", value1, value2, "cdetail");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}